package com.itheima.ssm.service;

import com.itheima.ssm.domain.Pemission;
import com.itheima.ssm.domain.Role;

import java.util.List;

public interface IRoleService {

    public List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    void deleteRoleById(int roleId) throws Exception;

    Role findById(String roleId) throws Exception;

    List<Pemission> findOtherPermission(String roleId) throws Exception;

    void addPermissionToRole(String roleId, String[] pids) throws Exception;
}
